/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package racer.client.data;

import java.util.HashMap;
import java.util.Iterator;
import racer.client.gui.tiles.Tile;
import racer.client.gui.tiles.TileTypeNeighbours;

/**
 *
 * @author Lieven
 */
public class print {
    
    //out=console
   public static void out(String text){
        System.out.println(text);
        
    }

    public static void tiles(HashMap tilemap){
        Iterator tileIterator = tilemap.keySet().iterator();
        while(tileIterator.hasNext()) {
            Tile tee = (Tile)tilemap.get(tileIterator.next());
            out("Tile ID: "+tee.id+", (X,Y): ("+tee.x+","+tee.y+"), width: "+tee.width+", height: "+tee.height+", type: "+tee.type);
            TileTypeNeighbours ttnteep=(TileTypeNeighbours) tee.ttn;
            out("LEFT : "+ttnteep.getLeft()+"\nRIGHT : "+ttnteep.getRight()+"\nTOP : "+ttnteep.getTop()+"\nBOTTOM : "+ttnteep.getBottom()+"\n\n");
        }   
    }
    
    
    public static void chosentiles(HashMap chosenmap){
        Iterator tileIterator = chosenmap.keySet().iterator();
        while(tileIterator.hasNext()) {
            int mid= (Integer)tileIterator.next();
            String type = (String)chosenmap.get(mid);
            
            out("Tile ID: "+mid+",type:: "+type);

        }   
    }    
}

